using System;
using System.Runtime.Serialization;
namespace CommandLib.Base
{
	[Serializable]
	public class MessageException :System.Exception
	{
		public MessageException()
		{
		}
		public MessageException(string message) : base(message)
		{
		}
		protected MessageException(SerializationInfo info, StreamingContext context) : base(info, context)
		{
		}
		public MessageException(string message, Exception innerException) : base(message, innerException)
		{
		}
		public static MessageException NewMessageException()
		{
			return new MessageException();
		}
		public static MessageException NewMessageException(string message)
		{
			return new MessageException(message);
		}
		public static MessageException NewMessageException(SerializationInfo info, StreamingContext context)
		{
			return new MessageException(info, context);
		}
		public static MessageException NewMessageException(string message, Exception innerException)
		{
			return new MessageException(message, innerException);
		}
		public static void ThrowMessageException()
		{
			throw MessageException.NewMessageException();
		}
		public static void ThrowMessageException(string message)
		{
			throw MessageException.NewMessageException(message);
		}
		public static void ThrowMessageException(SerializationInfo info, StreamingContext context)
		{
			throw MessageException.NewMessageException(info, context);
		}
		public static void ThrowMessageException(string message, Exception innerException)
		{
			throw MessageException.NewMessageException(message, innerException);
		}
	}
}
